#ifndef AITITLEBAR_H
#define AITITLEBAR_H

#include <QWidget>
#include <QPushButton>
#include <QMouseEvent>

class AiTitleBar : public QWidget
{
    Q_OBJECT
public:
    AiTitleBar(QWidget *parent = nullptr);
    ~AiTitleBar();

private:
    void initUI();
    // 鼠标按下事件
    void mousePressEvent(QMouseEvent *event) override;

private slots:
    // 按钮点击事件
    void onBtnClicked();

signals:
    // 关闭窗口
    void sigCloseWin();
    // 配置AI模型
    void sigConfigAi();

private:
    QPushButton *m_pCloseBtn;
    QPushButton *m_configBtn;
    QPushButton *m_pMinBtn;
};

#endif // AITITLEBAR_H